<include file="layout/header" />

<div id="content">                
    <!-- widget grid -->
    <section id="widget-grid" class="">
    
        <!-- row -->
        <div class="row">
    
            <!-- NEW WIDGET START -->
            <article class="col-xs-12 col-sm-12 col-md-12 col-lg-12 sortable-grid ui-sortable">
    
                <!-- Widget ID (each widget will need unique ID)-->
                <div class="jarviswidget jarviswidget-color-darken jarviswidget-sortable" id="wid-id-0" data-widget-editbutton="false" role="widget">
                    <header role="heading">
                    <div class="jarviswidget-ctrls" role="menu">   </div>
                    <span class="widget-icon"> <i class="fa fa-table"></i> </span>
                    <h2>流水记录</h2>
    
                    <span class="jarviswidget-loader"><i class="fa fa-refresh fa-spin"></i></span></header>
                        
                    <!-- widget div-->
                    <div role="content">
    
                        <!-- widget edit box -->
                        <div class="jarviswidget-editbox">
                            <!-- This area used as dropdown edit box -->
                        </div>
                        <!-- end widget edit box -->
                        <!-- widget content -->
                        <div class="widget-body no-padding">
                            <div class="widget-body-toolbar">
                                <form action='{{:url("manage/Counts/flow")}}' method="get">
                                    <label class="select col-xs-2">
                                        <input type="text" name="keyword" placeholder="请输入订单号" class="search form-control" value="{{$keyword}}">
                                    </label>
                                    
                                    <div class="input-group col-xs-1">
                                       <div class="input-group-btn">
                                            <button class="btn btn-default btn-primary" type="submit"><i class="fa fa-search"></i> 搜索</button>
                                        </div>&nbsp;&nbsp;
                                    </div>
                                </form>
                            </div>
                            <div id="dt_basic_wrapper" class="dataTables_wrapper form-inline" role="grid">
                                <div class="dt-wrapper">
                                    <table id="dt_basic" class="table table-striped table-bordered table-hover dataTable" aria-describedby="dt_basic_info">
                                        <thead>
                                            <tr role="row">
                                                <th>订单号</th>
                                                <th>用户</th>
                                                <th>应付金额(元)</th>
                                                <th>实付金额(元)</th>
                                                <th>付款状态</th>
                                                <th>付款时间</th>
                                                <th>创建时间</th>
                                                <th>支付方式</th>
                                            </tr>
                                        </thead>
                                        <tbody role="alert" aria-live="polite">
               								<volist name="data" id="vo">
               									<tr>
               										<td>{{$vo.oid}}</td>
               										<td>{{$vo.name}}</td>
               										<td>{{$vo.amount / 100}}</td>
               										<td>{{$vo.pmoney / 100}}</td>
               										<td><eq name="vo.state" value="1">待支付<else/>已完成</eq></td>
               										<td>{{$vo.pt|date='Y-m-d H:i:s',###}}</td>
               										<td>{{$vo.t|date='Y-m-d H:i:s',###}}</td>
               										<td><eq name="vo.pmode" value="0">系统<else/>微信</eq></td>
               									</tr>
               								</volist>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="dt-row dt-bottom-row">
                                    <div class="row">
                                        <div class="col-sm-6 text-right">
                                            <div class="dataTables_paginate paging_bootstrap_full">
                                                <ul class="pagination">
                                                    {{$data->render()}}
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <!-- end widget content -->
    
                    </div>
                    <!-- end widget div -->
                </div>
            </article>
            <!-- WIDGET END -->
        </div>
        <!-- end row -->
    </section>
    <!-- end widget grid -->
</div>
<include file="layout/footer" />